<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>

    <head>
        <meta charset="utf-8" />
        <title>交易统计</title>
        <link rel="stylesheet" href="/Public/Leader/css/bootstrap.css">
        <link rel="stylesheet" type="text/css" href="/Public/Leader/css/index.css" />
        <link rel="stylesheet" type="text/css" href="/Public/Leader/css/bootstrap-datetimepicker.css"/>
        <style type="text/css">
            .order-list a {
                position: relative;
            }
            .order-list span {
                float: right;
                margin-right: 20px;
            }
        </style>
    </head>

    <body>
        <style>
    .pagination .current{
        float: left;
    padding: 0 14px;
    line-height: 38px;
    text-decoration: none; 
    border-left-width: 0;
    }
        
</style>
<div id="topbar" class="top-navigation dark-bg ">
            <nav class="navbar   dark-bg " role="navigation" style="width:85%;margin:auto;">
                <div class="navbar-header" style="width:200px;">
                    <button aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="collapse" class="navbar-toggle collapsed" type="button">
                        <i class="fa fa-reorder"></i>
                    </button>
                    <a class="navbar-brand" href="<?php echo U('Index/index');?>">小易出行</a>
                </div>
                <div class="navbar-collapse collapse" id="navbar">
                    <ul class="nav navbar-nav dark-bg">
                        

                        <li <?php if($table == 'index'): ?>class="active"<?php endif; ?>>
                            <a href="<?php echo U('Index/index');?>"> 首页</a>
                        </li>

                        <li <?php if($table == 'order'): ?>class="active"<?php endif; ?>>
                            <a href="<?php echo U('Order/orderadmin');?>">订单管理</a>
                        </li>

                        <li <?php if($table == 'pay'): ?>class="active"<?php endif; ?>>
                            <a href="<?php echo U('Pay/paycount');?>">交易中心</a>
                        </li>
                        <li <?php if($table == 'article'): ?>class="active"<?php endif; ?>>
                            <a href="<?php echo U('Article/lst');?>">文章</a>
                        </li>
                        <li <?php if($table == 'wx'): ?>class="active"<?php endif; ?>>
                            <a href="<?php echo U('Wx/wx_menu/wid/1');?>">微信管理</a>
                        </li>
                        <li <?php if($table == 'line'): ?>class="active"<?php endif; ?>>
                            <a href="<?php echo U('Line/lineadmin');?>">线路管理</a>
                        </li>
                        <li <?php if($table == 'user'): ?>class="active"<?php endif; ?>>
                            <a href="<?php echo U('User/userinfo');?>">用户管理</a>
                        </li>
                        <li <?php if($table == 'useradmin'): ?>class="active"<?php endif; ?>>
                            <a href="<?php echo U('Useradmin/userinfo');?>">系统管理</a>
                        </li>

                    </ul>
                    <ul class="nav navbar-top-links navbar-right">
                        <li class="dropdown">
                            <a aria-expanded="false" role="button" href="#" class="dropdown-toggle" data-toggle="dropdown" style="position:relative;" onclick="$(this).find('span').toggleClass('deg180')">
                                <name style="width: 80px;white-space:nowrap;overflow:hidden;text-overflow: ellipsis;display: block;text-align: center"><?php echo session('username');?></name>
                                <span class="caret" style="position: absolute;top: 22px;right: 12px;"></span></a>
                            <ul role="menu" class="dropdown-menu">
                                <li>
                                    <a onclick="return confirm('您确定要退出吗？')" tabindex="-1" href="<?php echo U('Login/Logout');?>">退出</a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </nav>
        </div>
        <div class="wrapper main-wrapper wrapper-content ">
            <div class="page-menubar">
                <!--<div class="menu-header">交易中心</div>-->
                <ul class="order-list">
                    <li class="active">
                        <a href="<?php echo U('Pay/paycount');?>"><img src="/Public/images/ic7.png" alt="" class="com-icon">交易统计 </a>
                    </li>
                    <li>
                        <a href="<?php echo U('Pay/czadmin');?>"><img src="/Public/images/ic-8.png" alt="" class="com-icon">充值中心</a>
                    </li>
                </ul>
            </div>
            <!--主要内容-->
            <div class="page-content" style="display: block;">
                <!--内容标题-->
                <div class="page-heading">
                    <h2>交易明细列表</h2>
                </div>
                <div class="page-body">
                    <form action="" method="post" class="form-horizontal table-search" role="form">
                        <div class="page-toolbar row m-b-sm m-t-sm">
                            <div class="col-sm-12 pull-left">
                                <div class="input-group col-sm-12">
                                    <input type="text" name="wtime" id="starttime" placeholder="选择起始时间" class="input-sm  col-sm-2" readonly="readonly" style="border:1px solid #eee;"/>
                                    <input type="text" name="ntime" id="endtime" placeholder="选择终止时间" class="input-sm  col-sm-2" readonly="readonly" style="border:1px solid #eee;"/>
                                    <input type="text" name="sj" id="sj" placeholder="输入司机姓名" class="input-sm  col-sm-2" style="border:1px solid #eee;"/>
                                    <!-- <select name="sj" class="input-sm select-md col-sm-2" style="padding:0 5px;border-color:#eee;">
                                        <option value="" selected="">选择司机</option>
                                        <?php if(is_array($sj)): $i = 0; $__LIST__ = $sj;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vo['xingming']); ?>"><?php echo ($vo['xingming']); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                                    </select> -->
                                    <span class="input-group-btn pull-left">
                                        <button class="btn btn-sm btn-primary" type="submit"> 搜索</button>
                                    </span>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="panel panel-default" style="margin-top:20px;">
                    <div class="panel-body">
                        <ul class="fenxilist clearfix">
                            <li class="col-sm-3">
                                <div>订单笔数(笔)</div>
                                <div><?php echo ($bwcount?$bwcount:0); ?></div>

                            </li>
                            <li class="col-sm-3">
                                <div>订单金额(元)</div>
                                <div>￥<?php echo ($bwcount2?$bwcount2:0); ?></div>

                            </li>
                            <li class="col-sm-3">
                                <div>已完成笔数</div>
                                <div><?php echo ($bwcount3?$bwcount3:0); ?></div>

                            </li>
                            <li class="col-sm-3">
                                <div>已完成金额</div>
                                <div>￥<?php echo ($bwcount4?$bwcount4:0); ?></div>

                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </body>
    <script src="/Public/Leader/js/jquery.js" type="text/javascript" charset="utf-8"></script>
    <script src="/Public/Leader/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="/Public/Leader/js/bootstrap-datetimepicker.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript">
    $(function () {
        var myDate = new Date();
        $('#starttime').datetimepicker({
            minView: 0, //选择日期后，不会再跳转去选择时分秒
            language: 'zh-CN',
//            format: 'yyyy-mm-dd',
            todayBtn: 1,
            autoclose: 1,
            todayHighlight: true,

        });
        $('#endtime').datetimepicker({
            minView: 0, //选择日期后，不会再跳转去选择时分秒
            language: 'zh-CN',
//            format: 'yyyy-mm-dd',
            todayBtn: 1,
            autoclose: 1,
            todayHighlight: true,
        });
    })
</script>
</html>